package com.ywu.admin.user.standard.data;

import com.ywu.admin.user.standard.dto.UserDto;
import com.ywu.admin.user.standard.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserRepository
 * @Description TODO
 * @Author GroundDemo
 * @Date 2024/3/9 13:46
 * @Version 1.0
 **/
@Mapper
public interface UserRepository {
    void createUserInfo(@Param("model") UserEntity userEntity);

    void updateUserInfo(@Param("model") UserEntity userEntity);

    void deleteUserInfo(@Param("model") UserEntity userEntity);

    List<UserEntity> queryUserInfo(@Param("model") UserDto userDto);

    int queryUserCount(@Param("model") UserDto userDto);

    List<UserEntity> queryUserByIdBatch(@Param("list") List<Integer> ids);

    UserEntity queryUserEntityByAccount(@Param("model") UserDto loginDto);
}
